package com.ylxin.smartplatform.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ylxin.smartplatform.constans.ResultCode;
import com.ylxin.smartplatform.valigroup.Insert;
import com.ylxin.smartplatform.valigroup.Update;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

public class SysDevice {

  @NotEmpty(groups = {Insert.class, Update.class}, message = "{\"code\": " + ResultCode.PARAM_CONTENT_EMPTY + ",\"msg\": \"没有传递设备ID\"}")
  private String deviceId;
  @NotEmpty(groups = {Insert.class}, message = "{\"code\": " + ResultCode.PARAM_CONTENT_EMPTY + ",\"msg\": \"没有传递设备名称\"}")
  private String deviceName;
  @NotNull(groups = {Insert.class}, message = "{\"code\": " + ResultCode.PARAM_CONTENT_EMPTY + ",\"msg\": \"没有传递分类ID\"}")
  private long categyId;

  private long bindUserId;

  private long sceneId;

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private java.sql.Timestamp bindTime;
  private long isOnline;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private java.sql.Timestamp connectTime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private java.sql.Timestamp lostConnectTime;
  @JsonFormat(pattern = "yyyy-MM:dd HH:mm:ss")
  private java.sql.Timestamp lastControlTime;
  private String currentConnectIp;
  private String connectLocation;
  private long status;


  public String getDeviceId() {
    return deviceId;
  }

  public void setDeviceId(String deviceId) {
    this.deviceId = deviceId;
  }


  public String getDeviceName() {
    return deviceName;
  }

  public void setDeviceName(String deviceName) {
    this.deviceName = deviceName;
  }


  public long getCategyId() {
    return categyId;
  }

  public void setCategyId(long categyId) {
    this.categyId = categyId;
  }


  public Long getBindUserId() {
    return bindUserId;
  }

  public void setBindUserId(long bindUserId) {
    this.bindUserId = bindUserId;
  }


  public long getSceneId() {
    return sceneId;
  }

  public void setSceneId(long sceneId) {
    this.sceneId = sceneId;
  }


  public java.sql.Timestamp getBindTime() {
    return bindTime;
  }

  public void setBindTime(java.sql.Timestamp bindTime) {
    this.bindTime = bindTime;
  }


  public long getIsOnline() {
    return isOnline;
  }

  public void setIsOnline(long isOnline) {
    this.isOnline = isOnline;
  }


  public java.sql.Timestamp getConnectTime() {
    return connectTime;
  }

  public void setConnectTime(java.sql.Timestamp connectTime) {
    this.connectTime = connectTime;
  }


  public java.sql.Timestamp getLostConnectTime() {
    return lostConnectTime;
  }

  public void setLostConnectTime(java.sql.Timestamp lostConnectTime) {
    this.lostConnectTime = lostConnectTime;
  }


  public java.sql.Timestamp getLastControlTime() {
    return lastControlTime;
  }

  public void setLastControlTime(java.sql.Timestamp lastControlTime) {
    this.lastControlTime = lastControlTime;
  }


  public String getCurrentConnectIp() {
    return currentConnectIp;
  }

  public void setCurrentConnectIp(String currentConnectIp) {
    this.currentConnectIp = currentConnectIp;
  }


  public String getConnectLocation() {
    return connectLocation;
  }

  public void setConnectLocation(String connectLocation) {
    this.connectLocation = connectLocation;
  }


  public long getStatus() {
    return status;
  }

  public void setStatus(long status) {
    this.status = status;
  }

}
